package cn.nexd.app.collector;

import cn.nexd.framework.util.DateUtil;
import cn.nexd.framework.util.SDCardUtil;

/**
 * Created by wangxu on 16/9/14.
 */
public class Configuration {


    public static class Config {
//        ERROR_CODE_COLLECTOR_SUCCESS(10010),
//        ERROR_CODE_PERMISSION_UNAVAILABLE(10011),
//        ERROR_CODE_COLLECTOR_UNAVAILABLE(10012),
//        ERROR_CODE_COLLECTOR_STATE_UNAVAILABLE(10013),
//        ERROR_CODE_COLLECTOR_NO_SINGLESOURCE_FOUND(10014);
    }


    public enum Path {

        SAVE_BASE_PATH(SDCardUtil.getSDCardPath() + "/nexd/collect/" + DateUtil.getDate(DateUtil.DateStyle.YYYYMMDD) + "/");
        private String savePath;


        Path(String path) {
            this.savePath = path;
        }

        public String getSavePath() {
            return this.savePath;
        }
    }

    public static String getSavePath(Path path) {
        return path.getSavePath();
    }
}
